package cn.bb.pojo;

import org.aspectj.lang.JoinPoint;

import java.io.Serializable;

public class Shopping implements Serializable {
    private User user;
    private Ice ice;
    public void printInfo(){
        user.printInfo();
        ice.buyIce(user);
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Ice getIce() {
        return ice;
    }

    public void setIce(Ice ice) {
        this.ice = ice;
    }
}
